From e85fc996e34331642109b56d4bf554343a4f960e Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sat, 1 May 2004 05:35:34 +0000 Subject: [PATCH] (dired-diff): Use `dired-dwim-target-directory' if current dired buffer has no buffer mark. --- lisp/dired-aux.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index dbc3d763040..b31d20782f3 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -64,7 +64,10 @@ With prefix arg, prompt for second argument SWITCHES, (if default (concat "(default " default ") ") "")) - (dired-current-directory) default t) + (if default + (dired-current-directory) + (dired-dwim-target-directory)) + default t) (if current-prefix-arg (read-string "Options for diff: " (if (stringp diff-switches) -- 2.30.2